<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<jsp:include page="/common/backend_common.jsp" />

<title>部门编辑界面</title>
</head>
<body>
<!-- 提示：如果你不想用form，你可以换成div等任何一个普通元素 -->
<div class="layui-form" lay-filter="show_form">
	<input type="hidden" id="id" name="id">	
	<input type="hidden" id="deptId" name="deptId">
	<input type="hidden" id="parentId" name="parentId">
	
	<div class="layui-form-item">
		<label class="layui-form-label">机构名称</label>
		<div class="layui-input-inline" style="width: 30%;">
			<input type="text" name="name" placeholder="请输入部门名称" autocomplete="off" class="layui-input">
		</div>
		<label class="layui-form-label">上级机构名称</label>
        <div class="layui-input-inline" style="width: 30%;">
          <input type="text" class="layui-input" lay-verify="required" name="parentName" id="parentName">
        </div>
	</div>
	<div class="layui-form-item">
		<label class="layui-form-label">机构层级</label>
		<div class="layui-input-inline" style="width: 30%;">
			<input type="text" id ="level" name="level" placeholder="请输入部门层级" autocomplete="off" class="layui-input layui-btn-disabled" disabled="disabled">
		</div>
		<label class="layui-form-label">展示顺序</label>
		<div class="layui-input-inline" style="width: 30%;">
			<input type="text" name="seq" placeholder="请输入展示顺序" lay-verify="required" autocomplete="off" class="layui-input">
		</div>
	</div>
	<div class="layui-form-item">
		<label class="layui-form-label">创建人</label>
		<div class="layui-input-inline" style="width: 30%;">
			<input type="text" name="operator" class="layui-input layui-btn-disabled" disabled="disabled">
		</div>
		<label class="layui-form-label">创建日期</label>
		<div class="layui-input-inline" style="width: 30%;">
			<input type="text" name="operateTime" id="operateTime" lay-verify="date" placeholder="yyyy-MM-dd" class="layui-input layui-btn-disabled" disabled="disabled">
		</div>
	</div>
	<div class="layui-form-item">
		<label class="layui-form-label">更新人</label>
		<div class="layui-input-inline" style="width: 30%;">
			<input type="text" id="updateUser" name="updateUser" class="layui-input layui-btn-disabled" disabled="disabled">
		</div>
		<label class="layui-form-label">更新日期</label>
		<div class="layui-input-inline" style="width: 30%;">
			<input type="text" id="updateTime" name="updateTime" lay-verify="date" placeholder="yyyy-MM-dd" class="layui-input layui-btn-disabled" disabled="disabled">
		</div>
	</div>
	<div class="layui-form-item">
		<label class="layui-form-label">状态</label>
		<div class="layui-input-block">
			<input id="status" name="status" type="checkbox" value="1" lay-skin="switch" lay-text="启用|禁用">
		</div>
	</div>
	<div class="layui-form-item layui-form-text">
		<label class="layui-form-label">描述</label>
		<div class="layui-input-block">
			<textarea name="remark" placeholder="请输入描述内容" class="layui-textarea"></textarea>
		</div>
	</div>
	<div class="layui-form-item">
		<div class="layui-input-block">
			<button class="layui-btn" lay-submit lay-filter="deptEditSubmit">立即提交</button>
			<button type="reset" class="layui-btn layui-btn-primary">重置</button>
		</div>
	</div>
	<!-- 更多表单结构排版请移步文档左侧【页面元素-表单】一项阅览 -->
</div>

<script type="text/javascript" src="../../../other/js/config.js"></script>
<script type="text/javascript" src="deptEdit.js"></script>
<script type="text/javascript">


</script>
</body>
</html>